function openDetails(companyID) {
    redirect("blprofile", "view", {
        company_id : companyID
    }, true);
}

function saveRequest(requestName, type) {
    redirect("saverequest", "", {
        request : requestName,
        type : (type == "sell" ? 2 : 1)
    }, false);
}

function requestPreviousPage() {
    getPage(currentPage-1, "list_businessleads");
}

function requestNextPage() {
    getPage(currentPage+1, "list_businessleads");
}

function jumpToPage(item) {
    var page = jQuery(item).text();
    getPage(page, "list_exportproducts");
    jQuery("button.selectedpage").removeClass("selectedpage");
    if (jQuery("button#pg_" + page).size() > 0) {
        jQuery("button#pg_" + page).addClass("selectedpage");
    }
}

function viewDetails(item, id) {
    jQuery(item).hide();
    jQuery("div[id='description_" + id + "']").hide();
    jQuery("div[id='addressbar_" + id + "']").show("fade", {}, 300);
    jQuery("div[id='details_" + id + "']").show("fade", {}, 300);
}

function goLogin() {
    redirect("login", "", {}, false);
}

function photoClicked(item) {
    displayLargeImage(item);
}
